bitkeeper revision 1.1595 (429b3970iSiBE6JNLmeO-KDY_v3Hdg)
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 30 May 2005 16:04:00 +0000 (16:04 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 30 May 2005 16:04:00 +0000 (16:04 +0000)
commit0f732c946ec2f0fb401f890ec4a9d49efcb2f77b
treefcc0c53bcf98baf0e8c9f638a11533dbde4e9fcc
parente26aba7c65d62c217bec9f1b1629bcf9d7576888
bitkeeper revision 1.1595 (429b3970iSiBE6JNLmeO-KDY_v3Hdg)

Better locking strategy in serial rx interrupt handler and getc. Release
the spinlock after each loop iteration to prevent starvation of other
cpus and of interrupt handling. Also neatly folds byte_matches() into
serial_getc().
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/drivers/char/serial.c